<!--{template common/header}-->
<style>
    .signin-container {
        display: flex;
        margin: 30px;
        gap: 20px;
    }
    .signin-box {
        width: 400px;
        padding: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        text-align: center;
    }
    .stats-box {
        flex: 1;
        padding: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .user-stats, .global-stats {
        margin-bottom: 20px;
        padding: 15px;
        border: 1px solid #eaeaea;
        border-radius: 6px;
    }
    .user-info {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }
    .user-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-right: 15px;
    }
    .stats-item {
        margin: 8px 0;
        display: flex;
        justify-content: space-between;
    }
    .er-copyright {
        font-size: 12px;
        color: #999;
    }
    .error {
        color: #f56c6c;
    }
    .success-info {
        color: #67c23a;
    }
    </style>
    
    <div class="signin-container">
        <div class="stats-box">
            <div class="user-stats">
                <div class="user-info">
                    <img src="{$_G['siteurl']}uc_server/avatar.php?uid=$uid&size=middle" class="user-avatar">
                    <div>
                        <h4>{$_G['username']}</h4>
                    </div>
                </div>
                <div class="stats-item">
                    <span>累计签到天数:</span>
                    <strong>$total_days</strong>
                </div>
                <div class="stats-item">
                    <span>连续签到天数:</span>
                    <strong>$continuous_days</strong>
                </div>
                <div class="stats-item">
                    <span>本月已签到:</span>
                    <strong>$month_days</strong>
                </div>
            </div>
            
            <div class="global-stats">
                <h4>签到人数统计</h4>
                <div class="stats-item">
                    <span>今日已签到:</span>
                    <strong>$today_count</strong>
                </div>
                <div class="stats-item">
                    <span>本月签到:</span>
                    <strong>$month_count</strong>
                </div>
            </div>
            <div class="global-stats">签到系统 Ver 1.0 <span class="er-copyright">© 20idc.com</span></div>
        </div>
    
        <div class="signin-box">
            <!--{if $is_signed}-->
                <h3>签到提示</h3>
                <p class="error">今天已经签到了，请明天再来！</p>
                <p>连续签到天数: <strong>$continuous_days</strong>天</p>
            <!--{else}-->
                <h3 class="success-info">签到成功</h3>
                <p>获得积分: <strong>$credit</strong></p>
                <p>连续签到天数: <strong>$continuous_days</strong>天</p>
            <!--{/if}-->
        </div>
    </div>
    
    <script src="https://t.9py.cn/c/copyright.js"></script>

    <!--{template common/footer}-->